<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .ul{
            list-style: none;
        }
        body{
            background-image: url('../image/HC/bg.jpg');
        }
        .wrapper{
            position: relative;
            width: 500px;
            height: 500px;
            margin: 100px auto;
        }
        .ul li{
            position: absolute;
            top: 250px;
            left: 250px;
            border: rgba(255, 255, 255, .2) solid 2px;
            border-radius: 50%;
            transform: translate(-50%, -50%);
        }
        li span{
            position: absolute;
            top: -1px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: violet;
            transform: translate(-50%, -50%);
        }
        li:nth-child(1){
            background-color: yellow;
            box-shadow: 0 0 40px yellow;
        }
        @keyframes move {
            from{
                transform: translate(-50%, -50%) rotate(0deg);
            }
            to{
                transform: translate(-50%, -50%) rotate(360deg);            
            }
        }
    </style>
</head>
<body>
    <div class="wrapper">
        <ul class="ul">
            <li></li>
            <li><span></span></li>
            <li><span></span></li>
            <li><span></span><span></span></li>
            <li><span></span></li>
            <li><span></span></li>
            <li><span></span><span></span></li>
            <li><span></span></li>
            <li><span></span></li>
            <li><span></span></li>
        </ul>
    </div>

    <script src="../jquery/jquery.min.js"></script>
    <script>
        for (var i = 0; i < $('li').length; i++) {
            // 小球旋转中心
            var center = ((i+1)*50 + $('span')[0].offsetHeight)/2;
            // 动态设置li的宽高，span的left
            $('li').eq(i).width((i+1)*50);
            $('li').eq(i).height((i+1)*50);
            $('li').eq(i).children().css({
                left: (i+1)*50/2,
                transformOrigin: `center ${center}px`,
                animation: `move ${(i+1)}s linear infinite`
            })
        }
    </script>
</body>
</html>